<?php
/**
 * 数据库迁移控制类
 * leon <y.leon@qq.com>
 */
class Migrate extends CI_Controller
{

	function index()
	{
		$this->load->library('migration');

		if ($this->migration->latest() ===  false){
			show_error($this->migration->error_string());
		} else {
			echo 'Migrate Success!';
		}
	}
}
